/*
 * ShopCategoryGoodsContract.java
 * business
 *
 * Created by ChenTao on 2016/10/25.
 *
 * Copyright (c) 2016年 yidiandao. All rights reserved.
 */

package com.yidiandao.business.ui.shopdetail.categorygoods;

import android.os.Bundle;

import com.yidiandao.business.base.BasePresenter;
import com.yidiandao.business.base.BaseView;
import com.yidiandao.business.data.bean.Goods;
import com.yidiandao.business.data.recyclertype.DoubleGoods;
import com.yidiandao.business.interfaces.LoadMoreListener;
import com.yidiandao.business.interfaces.RefreshLayoutStateListener;

import java.util.List;

/** 店铺分类详情 - Presenter */
public interface ShopCategoryGoodsContract {

    interface Presenter extends BasePresenter {

        void extraBundle(Bundle bundle);

        void loadCategoryNewGoodsList(boolean isRefreshing);

        void loadCategoryPriceGoodsList(boolean isRefreshing, boolean isSortUp);

        void loadCategorySalesGoodsList(boolean isRefreshing);

        void changeStyle(boolean isGridStyle);
    }

    interface View extends BaseView<Presenter>, RefreshLayoutStateListener, LoadMoreListener {

        void setGoodsList(List<Goods> goodsList);

        void setTitle(String categoryName);

        void showLoadingDialog();

        void hideLoadingDialog();

        void setGoodsGrid(List<DoubleGoods> goodsGridList);
    }
}
